find duplicate characters in a string